package com.example.safeassistan.message.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.safeassistan.R;

import java.util.List;

public class ChatAdapter extends BaseQuickAdapter<Integer, BaseViewHolder> {

    public ChatAdapter(List<Integer> data) {

        super(R.layout.item_chat_list, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, Integer item) {
//        helper.setText(R.id.tvMsgTitle,"【"+item.getTitle()+"】");
//        String title =String.format(item.getContent()+"<font color=#FF7D00>%s</font>" ," 点击查看详情");
//        helper.setText(R.id.tvMSgContent, Html.fromHtml(title));
//        helper.setText(R.id.tvCreateTime,item.getCreateTime());
        helper.addOnClickListener(R.id.tvCancel);
    }
}
